<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */


class RedCross_View_Helper_ImageLink extends Zend_View_Helper_Abstract
{

    public function imageLink($image)
    {
        if (substr($image, 0, 1) == '/') {
        	$image = substr($image, 1);
        }
        return $this->view->baseUrl() . '/static/' . $image;
    }

}